home *** CD-ROM | disk | FTP | other *** search
Text File | 2003-06-24 | 55.4 KB | 1,274 lines |
- <html>
-
- <head>
-
- <title>Schedule CounterWatch Monitoring</title>
- <link rel="stylesheet" type="text/css" href="css/rpmstyle.css">
-
- <style type="text/css">
- .GTabBox { height : 400; width : 630; border: none; background-color : activeborder }
-
- .PopUpBox { background-color:activeborder; position:absolute; margin:0; padding:0; border : solid thin; }
- .PopUpBox { border-top-color : #E0E0E0; border-left-color : #E0E0E0; border-bottom-color : #555555; border-right-color : #555555 }
-
- .DetailsTextBox { height : 0px; width : 0px; background-color: white; color: infotext; cursor : hand }
- .DetailsTextBox { border-style : solid; border-width : thin; overflow : clip}
- .DetailsTextBox { border-top-color : graytext; border-left-color : graytext; border-bottom-color : white; border-right-color : white}
-
- .RptStatusTextBox { height : 275px; width : 560px; background-color: white; color: infotext; }
- .RptStatusTextBox { border-style : solid; border-width : thin; overflow : scroll}
- .RptStatusTextBox { border-top-color : graytext; border-left-color : graytext; border-bottom-color : white; border-right-color : white}
- </style>
- </head>
-
- <body class="bodyc" language="JavaScript" RPMHostIP="!BreakoutBot:MonitorIP!" RPMHostPort="!BreakoutBot:MonitorPort!" RPMUserName="!BreakoutBot:UserName!" BOBDone="!BreakoutBot:Done!" onload="top.banner.savePageCoord(event,document.body,'SchedMonitoring'); SR_Init()" onunload="DiscoRpmCC_ScR()" onresize="processSizeChange()" onclick="checkClick()" onkeydown="processBSP()">
-
- <script LANGUAGE="JavaScript">
- <!--
-
- var AR_AnlID = ""; // SA Id
- var AR_CompIDArray = ""; // Computer Id Array
- var DtbState = "0"; // Details Text Box state, "0"=closed, "1"=opened
- var DurState = "0"; // Duration state, "0"=closed, "1"=opened
- var DetailsTitle_Desc = "Report Description";
- var DetailsTitle_Eval = "Evaluation Name / Description";
- var DetailsTitle_Comp = "For the Following Groups/Computers:";
- var Lb = "<BR>"; // Line break
- var CDUnits = 0; // Duration Units
- var CDCount = 0; // Duration Count
- var SchedRptLupRecCount = 0; // Scheduled Report Lookup record Counter
- var SchedReportRecLength = 0; // Schedule Report Store Record length
- var SchedReptSelIdx = 0; // Current Index for Selected Scheduled Report Store
- var InProcArray = new Array("Scheduled","In Process","Completed");
- var iocomplete = false; // initial io for Reports, Sa, Groups, Computers is complete?
- var cur_sxid = null; // ID of RS Line that is Selected
- var GenButtonsLoaded = true;
- var SDeleted=3; // Deleted Status Change value
- var Tid = null;
- var ignoreDBChangeEvent = false;
- var LastReportName = "";
- var AR_CurSchedRptStoreArr = new Array();
-
- // Capture and ignore script errors
- window.onerror = wwScrErr;
- function wwScrErr() {
- return true;
- }
- function processSpecialReportHandling() {
- return;
- }
-
- /* Process OnLoad */
- function SR_Init() {
- /* Initialize the Calendar */
- top.MainLoaded = true; // Flag that Main is now loaded
- //var dOb = new Date(2001,0,1,0,0,0,0);
- var dOb = new Date();
- baseDow = dOb.getDay();
- baseDay = dOb.getDate();
- baseMonth = dOb.getMonth();
- baseYear = dOb.getFullYear();
-
- Calendar1 = Calendar_init("Calendar1");
- InitRpmCC_AR();
- SR_StartDate.CalObj = Calendar1;
- Es_StopDate.CalObj = Calendar1;
- processSizeChange();
- processExcludeInit();
- }
-
- /* On Unload tell the Comm control to Disconnect from the Server */
- function DiscoRpmCC_ScR() {
- RpmCC_AR.Disconnect();
- if ( Tid != null ) {
- clearTimeout(Tid); // stop timeout routine
- }
- }
-
- /* Process Click on Enable Report Status Tab or Schedule Report Tab*/
- var WSHStatChangedFlag = true;
- function enableReportStatus() {
- if ( iocomplete ) {
- SchedRepTab.style.display="none";
- SchedRepUI.style.display="none";
- RepStatTab.style.display="";
- RepStatUI.style.display="";
- SchedRepUI.SelDate = Calendar1.selDate; // Save SchedRep's Seldate
- resetReportStatus();
- Rstatwin.innerHTML = ""; //clear display
- if ( WSHStatChangedFlag ) {
- processWSHLookupReset(); // go lookup current schedule reports
- WSHStatChangedFlag = false;
- }
- else {
- outputReportsStatusTextBox();
- }
- }
- }
-
- function resetReportStatus() {
- ButtonState(RsRemoveBut,"1");
- ButtonState(RsEditBut,"1");
- ButtonState(RsStopBut,"1");
- Es_Sdt.style.display = "none";
- Es_calwin.style.display = "none";
- ApCanBut.style.display = "none";
- Es_calwin.CalState = "0"
- Es_StopDate.value = "";
- }
-
- function enableScheduleReport() {
- RepStatTab.style.display="none";
- RepStatUI.style.display="none";
- SchedRepTab.style.display="";
- SchedRepUI.style.display="";
- RepStatUI.SelDate = Calendar1.selDate; // Save SchedRep's Seldate
- Calendar1.selDate = SchedRepUI.SelDate; // Restore RepStat's Seldate
-
- if ( document.all["calwin"].CalState == "1" ) { // if Calendar opneded
- processCalendarClick(SR_StartDate); // close it
- processCalendarClick(SR_StartDate); // reopen it
- }
- outputDetailsTextBox(); // if open, redisplay details
- getTodayDate();
- if ( AR_RptSel.style.visibility != "hidden" ) {
- AR_RptSel.focus();
- }
- }
-
- /* Initiate Lookup of Currently Scheduled Reports */
- function processWSHLookupReset() {
- AR_CurSchedRptStoreArr.length = 0;
- SchedRptLupRecCount = 0; // clear Lookup record counter
- if ( RpmCC_AR.WSHLookupName("*") ) {
- RMode = "";
- top.Rstatus.Pstat("Unable to start the SCHEDULED REPORT LOOKUP request",true);
- }
- else {
- RMode = "LookupSchedReport"; // set Mode of operation
- top.Rstatus.Pstat("One moment while SCHEDULED REPORT LOOKUP request completes");
- }
- }
-
- function processWSHStatusChange(wsid,wsstat) {
- if (RepStatUI.style.display == "") { // if Report Status box displayed
- var k=AR_CurSchedRptStoreArr.length; // length status display
- for ( var i=0; i<k; i+=SchedReportRecLength ) {
- if ( AR_CurSchedRptStoreArr[i] == wsid) { // match ID in store with Status Change event
- if ( wsstat == SDeleted ) {
- var idx = i; // index to record to be deleted
- for (var m = idx+SchedReportRecLength; m < AR_CurSchedRptStoreArr.length; ++m, ++idx) {
- AR_CurSchedRptStoreArr[idx] = AR_CurSchedRptStoreArr[m];
- }
- AR_CurSchedRptStoreArr.length -= SchedReportRecLength;
- }
- else if ( AR_CurSchedRptStoreArr[i+4] != wsstat) { // Status different
- AR_CurSchedRptStoreArr[i+4] = wsstat; // update status
- }
- outputReportsStatusTextBox(); // go redisplay
- break;
- }
- }
- if ( i>=k ) { // if not found, must be new entry
- top.Rstatus.Pstat("Unsolicited Report Status Change received");
- resetReportStatus(); // Relookup and redisplay Report Status
- Rstatwin.innerHTML = ""; //clear display
- processWSHLookupReset(); // go lookup current schedule reports
- }
- }
- else {
- WSHStatChangedFlag = true;
- }
- }
-
- /* Process Click on Duration Field */
- function processDurationClick() {
- if ( DurState == "0") { // if closed
- if ( SR_Dur.className == "idis" ) {
- return; // ignore open if disabled
- }
- DurState = "1";
- //SR_Dur.style.display = "none";
- document.all.SR_Dur.size = "1";
- Dur_closebutton.style.display = "";
- SR_DurCount.style.display = "";
- SR_DurUnits.style.display = "";
- SR_DurUnits.style.display = "";
- if (SR_DurUnits.style.visibility != "hidden") {
- SR_DurCount.focus();
- }
- if ( SR_Dur.value == "") {
- CDUnits = 0; CDCount = 1;
- }
- SR_Dur.value = "";
- SR_Dur.className = "idis";
- SR_DurCount.options[CDCount-1].selected = "selected";
- SR_DurUnits.options[CDUnits].selected = "selected";
- }
- else {
- DurState = "0"; // closed
- CDUnits = SR_DurUnits.selectedIndex;
- CDCount = SR_DurCount.selectedIndex+1;
- //SR_Dur.style.display = "";
- document.all.SR_Dur.size = "12";
- Dur_closebutton.style.display = "none";
- SR_DurCount.style.display = "none";
- SR_DurUnits.style.display = "none";
- var DurVal = " " + CDCount + " " + UTxtArray[CDUnits];
- SR_Dur.value = DurVal;
- SR_Dur.className = "";
- }
- checkEnableSchedButton(); // Enable Schedule Button?
- }
-
- /* Process Name Change event of current Report selection */
- function processReportNameChange() {
- processReportName();
- AR_Desc.value = AR_RptStoreArr[(ReportRecLength * RptSelectIdx)+2];
- LastReportName = AR_RptStoreArr[(ReportRecLength * RptSelectIdx)];
- outputDetailsTextBox();
- }
-
- function processDetailsButton() {
- SpecDTDD.style.display="none";
- SpecDurDD.style.display="none";
- PopUpDetails.style.display = "";
- outputDetailsTextBox(); // output Details for current selected Report
- }
-
- function processDetailsOKButton() {
- top.Rstatus.Pstat("");
- SpecDTDD.style.display="";
- SpecDurDD.style.display="";
- PopUpDetails.style.display = "none";
- if ( AR_RptSel.style.visibility != "hidden" ) {
- AR_RptSel.focus();
- }
- }
-
-
- var CmpArray = new Array(); // Array for Computer IDs
- var CmpArrayIx = 0; // computer Array index
- function outputDetailsTextBox() {
- dtb = document.all["detwin"];
- dtb.style.height = "245px";
- dtb.style.width = "540px";
- dtb.style.display = "";
- if ( AR_RptStoreArr.length == 0 )
- return; // exit if none
- SetCursor("wait");
- top.Rstatus.Pstat("One moment please for Computer display");
-
- /* Format Details for output */
- dtb.innerHTML = ""; // clear details
- var ridx = ReportRecLength * RptSelectIdx; // Index to Store for current Selected Report
- sob = "<center><table border='0' cellpadding='0' cellSpacing='1' width='480'>";
- sob += "<tr><td width='50%' align='center' style='background-color:activeborder' class='optextb'>" + "Template Name" + "</td>";
- sob += "<td width='50%' align='center' style='background-color:activeborder' class='optextb'>" + "Template Description" + "</td></tr>";
- var sid = AR_RptStoreArr[ridx+4]; // SA ID
- if ( getSelectSaName_Desc(sid) != "" ) { // determine index to SA Store based on ID
- sob += "<tr><td width='50%' class='optext'>";
- sob += AR_SaStoreArr[CurSaStoreIdx+0] + "</td>"; //name
- sob += "<td width='50%' class='optext'>" + AR_SaStoreArr[CurSaStoreIdx+2] + "</td></tr>"; //description
- }
- sob += "<tr><td colspan='3' height='10px' width='100%'> </td></tr>";
- sob += "<tr><td width='50%' align='center' style='background-color:activeborder' class='optextb'>" + "Server/Computer Name" + "</td>";
- sob += "<td width='50%' align='center' style='background-color:activeborder' class='optextb'>" + "Group Name" + "</td></tr></table></center>";
- CmpArray = AR_RptStoreArr[ridx+5].split(",");
- CmpArrayIx = 0; // initialize index
- dtb.insertAdjacentHTML("beforeEnd",sob);
- Tid = setTimeout("processDtbRow()",1); // delay 1 ms. then process details
- }
-
- function processDtbRow() {
- Tid = null; // reset
- var CmpNDArray = new Array(); // Array for Name & Description
- GrpID = null;
- GpS = AR_GrpStore;
- sob = "<center><table border='0' cellpadding='0' cellSpacing='1' width='480'>";
- for ( var i=0; i<100 && CmpArrayIx < CmpArray.length; i++ ) {
- CmpNDArray = (getSelectCmpName_Desc(CmpArray[CmpArrayIx++])).split("/");
- if ( CmpNDArray == "" ) {
- continue;
- }
- fgcol = ( AR_CmpStoreArr[CurCmpStoreIdx+6] == "Unknown" ) ? "red" : "infotext";
- sob += "<tr style='color:" + fgcol + "'><td width='50%' title='";
- sob += CmpNDArray[1] + "' class='optext'>" + CmpNDArray[0] + "</td>";
- GrpID = AR_CmpStoreArr[CurCmpStoreIdx+1];
- sob += "<td width='50%' class='optext'>" + getGroupName(GrpID,null,GpS) + "</td></tr>";
- }
- sob += "</table></center>";
- dtb.insertAdjacentHTML("beforeEnd",sob);
- if ( CmpArrayIx < CmpArray.length ) {
- Tid = setTimeout("processDtbRow()",1); // delay 1 ms. then process details
- }
- else {
- dtb.style.overflow = (dtb.scrollHeight >= dtb.clientHeight) ? "scroll" : "";
- top.Rstatus.Pstat("Done");
- SetCursor("auto");
- }
- }
-
- /* Process the Schedule Button */
- function processScheduleButton() {
- /* Close and accept any open selections */
- if (SR_StartTime.TimeState == "1") {
- processTimeClick('SR','SR_StartTime'); // go get StartTime selections if any
- }
- if (DurState == "1") {
- processDurationClick(); // go get Duration selections if any
- }
-
- /* Make sure reuired parameters have been specified */
- if ( SR_StartDate.value == "" ) {
- top.Rstatus.Pstat("Please enter a Start Date",true);
- alert("Please enter a Start Date");
- return;
- }
- if ( SR_StartTime.value == "" ) {
- top.Rstatus.Pstat("Please enter a Start Time",true);
- alert("Please enter a Start Time");
- return;
- }
- if ( SR_Dur.value == "" ) {
- top.Rstatus.Pstat("Please enter a Duration value",true);
- alert("Please enter a Duration value");
- return;
- }
-
- var ridx = ReportRecLength * RptSelectIdx; // Index to Store for current Selected
- Nme = AR_RptStoreArr[ridx]; // Name
- Desc = AR_RptStoreArr[ridx+2]; // Description
- Oid = AR_RptStoreArr[ridx+1]; //Original WS Template ID
- InP = "0"; // In process
- Aid = AR_RptStoreArr[ridx+4];
- Cid = AR_RptStoreArr[ridx+5];
- Std = Calendar1.getSelDate() + " " + cHrs + ":" + cMins + ":" + cSecs;
-
- /* Compute End Time from Satrt Time + Duration */
- var Dob = new Date(Std); // Date object
- Ems = Dob.getTime(); // Milliseconds since 1/1/70 0:0:0
-
- Ems += (CDCount * UValArray[CDUnits]); //Increment by duration
- Dob.setTime(Ems); // Set End D/T
- Edt = (Dob.getMonth()+1) + "/" + Dob.getDate() + "/" + Dob.getFullYear() + " ";
- Edt += Dob.getHours() + ":" + Dob.getMinutes() + ":" + Dob.getSeconds();
-
- var CDob = new Date(); // Current D/T object
- if ( Ems < CDob.getTime() ) { // if end time < current time
- InP = "2"; // set completed
- }
-
- var ExcludeParams = processExcludeGetParams();
- RMode = "SchedReport"; // set Mode of operation
- if ( RpmCC_AR.WSHAdd(Nme,Desc,Oid,InP,Aid,Cid,Std,Edt,ExcludeParams) ) {
- top.Rstatus.Pstat("Unable to Schedule Report",true);
- }
- else {
- top.Rstatus.Pstat("One moment while ScheduleReport request completes");
- }
- }
-
- /* Reset Processing after initial and subsequent Report operations */
- function processResetButton() {
- RptSelectIdx = 0; // reset index
- /* Need at least 1 record for Reports, SA, Computers and Groups */
- if (RptLupRecCount == 0 || SALupRecCount == 0 || CmpLupRecCount == 0 || GrpLupRecCount == 0) {
- processCommonReset();
- if ( SALupRecCount == 0 || CmpLupRecCount == 0 || GrpLupRecCount == 0 ) {
- sButtonState(RScheduleButton,"1");
- }
- else {
- top.Rstatus.Pstat("No record matches found for Report LOOKUP request",true);
- sButtonState(RScheduleButton,"1");
- }
- }
- else {
- iocomplete = true;
- uirtus.style.cursor="hand";
- processCommonReset();
-
- AR_RptSel.selectedIndex = 0;
- populateInput(0); // set Name
-
- if ( LastReportName != "" ) {
- for (i=0; i < AR_RptSel.length; ++i) {
- if ( AR_RptSel.options[i].text == LastReportName ) {
- AR_RptSel.selectedIndex = i;
- processReportNameChange();
- break;
- }
- }
- }
-
- /* select and focus to 1st name entry */
- AR_RptSel.className = "idis";
- AR_RptSel.options[AR_RptSel.selectedIndex].selected = "selected";
- if ( AR_RptSel.style.visibility != "hidden" ) {
- AR_RptSel.focus();
- }
- }
- }
-
- function populateInput(idx) {
- AR_Rpt.value = AR_RptStoreArr[idx+0]; // Synchronize name field with Store name field
- }
-
- function processCommonReset() {
- /* enable appropriate Report Name fields */
- AR_Rpt.style.display = "none";
- AR_RptSel.style.display = "";
-
- /* Create and Display Start Time dropdown selections */
- CreatTimeDropDowns("SR");
-
- /* Display and Create Duration dropdown selections */
- dct = SR_DurCount;
- dun = SR_DurUnits;
-
- for ( var i=1; i<= 59; i++ ) { // count drop down
- i = ( i < 10 ) ? " "+i : i;
- addElementToSelect(dct," "+i);
- }
- for ( i=0; i< UTxtArray.length; i++ ) { // unit drop down
- addElementToSelect(dun,UTxtArray[i]);
- }
- /* enable and disable appropriate input fields */
- SR_StartDate.className = "";
- SR_StartTime.className = "";
- SR_Dur.className = "";
- detwin.classFlag = "";
- }
-
- /* Check if Schedule Button Should Be Enabled */
- function checkEnableSchedButton() {
- if (SchedRepUI.style.display == "" ) {
- if ( (SR_StartTime.TimeState == "1" || SR_StartTime.value != "") && (DurState == "1" || SR_Dur.value != "") && (SR_StartDate.value != "") && AR_RptStoreArr.length > 0 ) {
- /* enable button */
- sButtonState(RScheduleButton,"0");
- }
- }
- else {
- ButtonState(RsApplyBut,"0");
- ButtonState(RsCancelBut,"0");
- }
- }
-
- /* Process WSH Add Op Complete */
- function processWSHOpComplete() {
- if (RMode == "SchedReport") {
- top.Rstatus.Pstat("Report Scheduled Successfully");
- SR_StartDate.value = "";
- SR_StartTime.value = "";
- SR_Dur.value = "";
- RptSelectIdx = 0; // reset index
- populateInput(0); // set Name
- /* select and focus to 1st name entry */
- AR_RptSel.className = "idis";
- if ( LastReportName != "" ) {
- for (i=0; i < AR_RptSel.length; ++i) {
- if ( AR_RptSel.options[i].text == LastReportName ) {
- AR_RptSel.selectedIndex = i;
- processReportNameChange();
- break;
- }
- }
- }
- AR_RptSel.options[AR_RptSel.selectedIndex].selected = "selected";
- if ( AR_RptSel.style.visibility != "hidden" ) {
- AR_RptSel.focus();
- }
- Calendar1.selDate = ""; // force Today's date
- sButtonState(RScheduleButton,"1");
- processExcludeInit();
- }
- else if (RMode == "LookupSchedReport") {
- if (SchedRptLupRecCount == 0) { // check if any records found
- top.Rstatus.Pstat("No record matches found for SCHEDULED REPORT LOOKUP request",true);
- }
- else {
- top.Rstatus.Pstat("Request Completed");
- }
- outputReportsStatusTextBox();
- }
- else {
- top.Rstatus.Pstat("Request Completed");
- if ( RMode == "RemoveSchedReport" ) {
- enableReportStatus();
- }
- else if (RMode == "StopSchedReport") {
- resetReportStatus();
- }
- }
- }
-
- function processButClick() {
- var DtArr = new Array;
- switch ( event.srcElement.id ) {
-
- case "RsRemoveBut" :
- if ( !confirm( "Are you sure you want to Delete the selected Scheduled Report?" ) ) {
- return;
- }
- wshid = AR_CurSchedRptStoreArr[SchedRepSelIdx];
- if ( RpmCC_AR.WSHDelete(wshid) ) {
- RMode = "";
- top.Rstatus.Pstat("Unable to start the SCHEDULED REPORT REMOVE request",true);
- }
- else {
- RMode = "RemoveSchedReport"; // set Mode of operation
- top.Rstatus.Pstat("One moment while SCHEDULED REPORT REMOVE request completes");
- }
- break;
-
- case "RsEditBut" :
- edit_but = true;
- Es_Sdt.style.display = "";
- Es_calwin.style.display = "";
- ApCanBut.style.display = "";
- ButtonState(RsRemoveBut,"1");
- ButtonState(RsEditBut,"1");
- ButtonState(RsStopBut,"1");
- ButtonState(RsApplyBut,"1");
-
- DtArr = AR_CurSchedRptStoreArr[SchedRepSelIdx+7].split(" "); // Split out Start Date/Time
- DtArr = DtArr[0].split("/"); // Split Start Date
-
- baseDay = DtArr[1]; // Start date
- baseMonth = DtArr[0]-1;
- baseYear = DtArr[2];
-
- DtArr = AR_CurSchedRptStoreArr[SchedRepSelIdx+8].split(" "); // Split out End Date and Time
- Calendar1.selDate = DtArr[0]; // Set to Stop Date
- processCalendarClick(Es_StopDate);
- et = DtArr[1]; // end Time
- ed = DtArr[0]; // end Date
- DtArr = DtArr[0].split("/"); // separate M/D/Y
- var dOb = new Date(DtArr[2],DtArr[0]-1,DtArr[1]); // Stop date
- dow = dOb.getDay(); // determine day of week
- Es_StopDate.value = " " + dowArray[dow] + " " + ed;
-
- /* Create and Display Start Time dropdown selections */
- CreatTimeDropDowns("Es");
- DtArr = et.split(":");
- cHrs = DtArr[0]; // Stop Time
- cMins = DtArr[1];
- cSecs = DtArr[2];
- CH = (cHrs > 12) ? cHrs-12 : cHrs;
- CH = (CH == 0) ? 12 : CH;
- Es_TimHrs.options[--CH].selected = "selected";
- Es_TimMins.options[cMins].selected = "selected";
- cM = (cHrs > 11 && cHrs < 24) ? 1 : 0;
- Es_M.options[cM].selected = "selected";
- break;
-
- case "RsStopBut" :
- var Dob = new Date(); // Date object for current D/T
- Edt = (Dob.getMonth()+1) + "/" + Dob.getDate() + "/" + Dob.getFullYear() + " ";
- Edt += Dob.getHours() + ":" + Dob.getMinutes() + ":" + Dob.getSeconds();
- processStopDTUpdate(Edt);
- break;
-
- case "RsApplyBut" :
- edit_but = false;
- cHrs = Es_TimHrs.selectedIndex+1; // get selected option
- cHrs = (cHrs == 12) ? 0 : cHrs; // Hr between 0 and 11
- cMins = Es_TimMins.selectedIndex;
- cSecs = 0;
- if ( (i = Es_M.selectedIndex) == 1) //PM selected
- cHrs += 12; // adjust hours
- DtArr = Es_StopDate.value.split(" ");
- Edt = DtArr[3] + " ";
- Edt += cHrs + ":" + cMins + ":" + cSecs;
- processStopDTUpdate(Edt);
- break;
-
- case "RsCancelBut" :
- processRSClick("row"+SchedRepSelIdx);
- break;
- }
- }
-
- function processStopTimeChange() {
- checkEnableSchedButton(); // Enable Apply button
- }
-
- function processStopDTUpdate(Edt) {
- wshid = AR_CurSchedRptStoreArr[SchedRepSelIdx];
- if ( RpmCC_AR.WSHReplaceEndDateTime(wshid,Edt) ) {
- RMode = "";
- top.Rstatus.Pstat("Unable to start the SCHEDULED Monitoring STOP request",true);
- }
- else {
- RMode = "StopSchedReport"; // set Mode of operation
- top.Rstatus.Pstat("One moment while SCHEDULED Monitoring STOP request completes");
- AR_CurSchedRptStoreArr.length = 0;
- }
- }
-
- var edit_but = false; // In Edit Stop D/T state
- function processRSClick(sxid) {
- var i = 0;
- var sx = "";
- RptObj = Rstatwin; // Report Status Display object
- if ( sxid.charAt(0) == "r" ) {
- sx = sxid.substring(3,sxid.length); // Strip off storage index
- SchedRepSelIdx = eval(sx);
- if ( cur_sxid != null ) {
- rescol = ((eval(cur_sxid.substring(3,cur_sxid.length))/SchedReportRecLength) % 2 != 0 ) ? "e8e8e8" : "white";
- document.all[cur_sxid].style.backgroundColor = rescol;
- document.all[cur_sxid].style.color = "infotext";
- }
- if ( cur_sxid == sxid ) { // if same line
- ButtonState(RsRemoveBut,"1");
- ButtonState(RsEditBut,"1");
- ButtonState(RsStopBut,"1");
- cur_sxid = null; // reset
- }
- else {
- document.all[sxid].style.backgroundColor = "scrollbar";
- cur_sxid = sxid; // Save Selected Line
- i = ( AR_CurSchedRptStoreArr[SchedRepSelIdx+4] != "1" ) ? "0" : "1";
- ButtonState(RsRemoveBut,i);
- i = ( AR_CurSchedRptStoreArr[SchedRepSelIdx+4] != "2" ) ? "0" : "1";
- ButtonState(RsEditBut,i);
- i = ( AR_CurSchedRptStoreArr[SchedRepSelIdx+4] == "1" ) ? "0" : "1";
- ButtonState(RsStopBut,i);
- }
- if ( edit_but ) {
- Es_Sdt.style.display = "none";
- Es_calwin.style.display = "none";
- ApCanBut.style.display = "none";
- Es_calwin.CalState = "0"
- Es_StopDate.value = "";
- edit_but = false;
- }
- }
- }
-
- var RptCount = 0;
- var LineCount = 0;
- /* Update Scheduled report Status Box */
- function outputReportsStatusTextBox() {
- RptCount = 0;
- LineCount = 0;
- outputReportsStatusTextBoxContinue();
- }
- function outputReportsStatusTextBoxContinue() {
- Tid = null;
- var sob = "";
- var i = RptCount;
- var j = LineCount;
- var DtArr = new Array;
- var DeArr = new Array;
-
- if ( RptCount == 0 ) {
- Rstatwin.innerHTML = ""; //clear display
- sob = "<table border='0' cellpadding='0' cellSpacing='1' width='900' id='table'>";
- sob += "<tr><td width='23%' align='center' style='background-color:activeborder' class='optextb'>" + "Report Name" + "</td>";
- sob += "<td width='10%' align='center' style='background-color:activeborder' class='optextb'>" + "Monitor Status" + "</td>";
- sob += "<td width='7%' align='center' style='background-color:activeborder' class='optextb'>" + "Start Date" + "</td>";
- sob += "<td width='7%' align='center' style='background-color:activeborder' class='optextb'>" + "Start Time" + "</td>";
- sob += "<td width='7%' align='center' style='background-color:activeborder' class='optextb'>" + "End Date" + "</td>";
- sob += "<td width='6%' align='center' style='background-color:activeborder' class='optextb'>" + "End Time" + "</td>";
- sob += "<td width='40%' align='center' style='background-color:activeborder' class='optextb'>" + "Description" + "</td></tr>";
- }
- else {
- sob = "<table border='0' cellpadding='0' cellSpacing='1' width='900' id='table"+i+"'>";
- }
-
- for ( var loopcount = 0; i<AR_CurSchedRptStoreArr.length && loopcount < 25; i+=SchedReportRecLength) {
- if ( AR_CurSchedRptStoreArr[i+4] == "4" )
- continue; // skip Master Scheduled records
-
- sob += "<tr style='cursor:hand' onclick='processRSClick(\"row" + i +"\")' id='row" + i + "'";
- if ( j % 2 != 0 ) {
- sob += " style='background-color:e8e8e8' ";
- }
- sob += "><td width='23%' class='optext'>";
- sob += AR_CurSchedRptStoreArr[i+1] + "</td>";
- sob += "<td width='10%' class='optext'>" + InProcArray[AR_CurSchedRptStoreArr[i+4]] + "</td>";
-
- DtArr = AR_CurSchedRptStoreArr[i+7].split(" "); // Split out Start Date and Time
- DeArr = DtArr[0].split("/"); // Split out m/d/y
- d = (DeArr[0].length == 1) ? "0"+DeArr[0] : DeArr[0];
- d += "/" + ((DeArr[1].length == 1) ? "0"+DeArr[1] : DeArr[1]);
- d += "/" + ((DeArr[2].length == 1) ? "0"+DeArr[2] : DeArr[2]);
- sob += "<td width='7%' class='optext'>" + d + "</td>";
- DeArr = DtArr[1].split(":"); // Split out h:m:s
- d = (DeArr[0].length == 1) ? "0"+DeArr[0] : DeArr[0];
- d += ":" + ((DeArr[1].length == 1) ? "0"+DeArr[1] : DeArr[1]);
- d += ":" + ((DeArr[2].length == 1) ? "0"+DeArr[2] : DeArr[2]);
- sob += "<td width='7%' class='optext'>" + d + "</td>";
-
- DtArr = AR_CurSchedRptStoreArr[i+8].split(" "); // Split out End Date and Time
- DeArr = DtArr[0].split("/"); // Split out m/d/y
- d = (DeArr[0].length == 1) ? "0"+DeArr[0] : DeArr[0];
- d += "/" + ((DeArr[1].length == 1) ? "0"+DeArr[1] : DeArr[1]);
- d += "/" + ((DeArr[2].length == 1) ? "0"+DeArr[2] : DeArr[2]);
- sob += "<td width='7%' class='optext'>" + d + "</td>";
- DeArr = DtArr[1].split(":"); // Split out h:m:s
- d = (DeArr[0].length == 1) ? "0"+DeArr[0] : DeArr[0];
- d += ":" + ((DeArr[1].length == 1) ? "0"+DeArr[1] : DeArr[1]);
- d += ":" + ((DeArr[2].length == 1) ? "0"+DeArr[2] : DeArr[2]);
- sob += "<td width='6%' class='optext'>" + d + "</td>";
-
- sob += "<td width='40%' class='optext'>" + AR_CurSchedRptStoreArr[i+2] + "</td></tr>";
- ++j;
- ++loopcount;
- }
-
- if ( j == 0 ) {
- sob += "<tr><td colspan='7' width='*' style='color:red' class='optext'>" + "No Scheduled Monitoring Reports Found" + "</td></tr>";
- }
- sob += "</table>";
- Rstatwin.insertAdjacentHTML("beforeEnd",sob);
- cur_sxid = null; // Current selected line
- RptCount = i;
- LineCount = j;
- if ( i < AR_CurSchedRptStoreArr.length ) { // continue if not done
- Tid = setTimeout("outputReportsStatusTextBoxContinue()",50); // delay 50 ms. then continue
- }
- }
-
- function processWSHOpError() {
- top.Rstatus.Pstat("Error in Schedule/Edit Report request",true);
- }
-
- function processWSHReplaceErrorNotFound() {
- top.Rstatus.Pstat("Error in Edit Report request, Record Not Found",true);
- }
-
- /* Process Report OP Complete Event */
- function processReportOpComplete() {
- top.Rstatus.Pstat("Request Completed");
- LastReportName = top.banner.RpmCC_Ban.RegGetKey(top.banner.ServerID+"LastReportTouched"); // get last report name
-
- if (RMode == "LookupReport") {
- if (RptLupRecCount == 0) { // check if any records found
- top.Rstatus.Pstat("No record matches found for Report LOOKUP request",true);
- }
- if ( needSA ) {
- SALupRecCount = 0; // clear Lookup record counter
- if ( RpmCC_AR.SupportAnalysisLookup("","") ) {
- RMode = "";
- top.Rstatus.Pstat("Unable to start the ANALYSIS LOOKUP request",true);
- }
- else {
- RMode = "LookupSA"; // set Mode of operation
- top.Rstatus.Pstat("One moment while ANALYSIS LOOKUP request completes");
- }
- }
- else {
- processResetButton();
- }
- }
- }
-
- /* Set initial button state for all buttons */
- function initButtonState() {
- sButtonState(RScheduleButton,"1");
- }
-
- function sButtonState(bObj,bst) {
- bObj.disabled = (bst == "0") ? "" : "disabled";
- //bObj.className = (bst == "0") ? "SBoxButton" : "SBoxButtonD";
- }
-
- function ButtonState(bObj,bst) {
- bObj.disabled = (bst == "0") ? "" : "disabled";
- //bObj.className = (bst == "0") ? "BoxButton" : "BoxButtonD";
- }
-
- /* Process WSH Lookup Records */
- function processWSHLookupRecord(SRid,SRptName,SRptDesc,SR_OID,InProcFlg,AIA,CIA,SRptD_T,PRptD_T,RptEvr) {
- if ( InProcFlg == "0" || InProcFlg == "1" ) { // Ignore for the special predefined "Inventory" reports
- // Update Storage
- i = SchedRptLupRecCount * SchedReportRecLength;
- AR_CurSchedRptStoreArr[i+0] = SRid;
- AR_CurSchedRptStoreArr[i+1] = SRptName;
- AR_CurSchedRptStoreArr[i+2] = SRptDesc;
- AR_CurSchedRptStoreArr[i+3] = SR_OID;
- AR_CurSchedRptStoreArr[i+4] = InProcFlg;
- AR_CurSchedRptStoreArr[i+5] = AIA;
- AR_CurSchedRptStoreArr[i+6] = CIA;
- AR_CurSchedRptStoreArr[i+7] = SRptD_T;
- AR_CurSchedRptStoreArr[i+8] = PRptD_T;
- AR_CurSchedRptStoreArr[i+9] = RptEvr;
- ++SchedRptLupRecCount; // bump record received counter
- SchedReportRecLength = 10; // length of a Storage record
- }
- }
-
- function processSizeChange() {
- //PopUpContext Menu
- bCw = document.body.clientWidth;
- PopUpContextSize(bCw);
-
- PuPLeft = (bCw-400)/2;
- PopUpExclude.style.left = PuPLeft+"px";
- PopUpExclude.style.top = "5px"; //PuPTop+"px";
- PopUpExclude.style.height = "450px";
- PopUpExclude.style.width = "400px";
-
- PuPLeft = (bCw-560)/2;
- PopUpDetails.style.left = PuPLeft+"px";
- PopUpDetails.style.top = "140px"; //PuPTop+"px";
- PopUpDetails.style.height = "320px";
- PopUpDetails.style.width = "560px";
-
- }
-
- function PopUpContextOpen() {
- AR_RptSel.style.visibility = "hidden";
- SR_DurCount.style.visibility = "hidden";
- SR_DurUnits.style.visibility = "hidden";
- SR_TimHrs.style.visibility = "hidden";
- SR_TimMins.style.visibility = "hidden";
- SR_TimSecs.style.visibility = "hidden";
- SR_M.style.visibility = "hidden";
- }
- function PopUpContextClose() {
- AR_RptSel.style.visibility = "visible";
- SR_DurCount.style.visibility = "visible";
- SR_DurUnits.style.visibility = "visible";
- SR_TimHrs.style.visibility = "visible";
- SR_TimMins.style.visibility = "visible";
- SR_TimSecs.style.visibility = "visible";
- SR_M.style.visibility = "visible";
- }
-
- // Create new Window and load specified Page
- function processViewReportButton() {
- processPopUpSelect(7,false);
- return;
- }
-
- function processDefineReportButton() {
- processPopUpSelect(5,false);
- return;
- }
-
- function checkReportCount() {
- if ( RptLupRecCount == 0 ) {
- alert("No Reports found. Go to 'Create CounterWatch Report' and create a report");
- }
- }
-
- var saveExcludeDiv = "";
- function processExcludeButton() {
- AR_RptSel.style.visibility="hidden";
- SpecDT.style.visibility="hidden";
- SpecDur.style.visibility="hidden";
- PopUpExclude.style.display="";
- saveExcludeDiv = ExcludeDiv.innerHTML;
- }
- function processExcludeCancelButton() {
- ExcludeDiv.innerHTML = saveExcludeDiv;
- processExcludeOKButton();
- }
- function processExcludeOKButton() {
- top.Rstatus.Pstat("");
- AR_RptSel.style.visibility="visible";
- SpecDT.style.visibility="visible";
- SpecDur.style.visibility="visible";
- PopUpExclude.style.display="none";
- if ( AR_RptSel.style.visibility != "hidden" ) {
- AR_RptSel.focus();
- }
- }
-
- function processExcludeInit() {
- Excl_MTF.checked = "";
- Excl_STS.checked = "";
- Excl_Mon.checked = "";
- Excl_Tue.checked = "";
- Excl_Wed.checked = "";
- Excl_Thu.checked = "";
- Excl_Fri.checked = "";
- Excl_Sat.checked = "";
- Excl_Sun.checked = "";
- processExcludeClick( Excl_MTF );
- processExcludeClick( Excl_STS );
- processExcludeClick( Excl_Mon );
- processExcludeClick( Excl_Tue );
- processExcludeClick( Excl_Wed );
- processExcludeClick( Excl_Thu );
- processExcludeClick( Excl_Fri );
- processExcludeClick( Excl_Sat );
- processExcludeClick( Excl_Sun );
- }
- function processExcludeClick(EObj) {
- if ( EObj.checked ) {
- document.all[EObj.id+"_ft1"].className = "";
- document.all[EObj.id+"_ft1"].disabled = "";
- document.all[EObj.id+"_ft2"].className = "";
- document.all[EObj.id+"_ft2"].disabled = "";
- document.all[EObj.id+"_tt1"].className = "";
- document.all[EObj.id+"_tt1"].disabled = "";
- document.all[EObj.id+"_tt2"].className = "";
- document.all[EObj.id+"_tt2"].disabled = "";
- }
- else {
- document.all[EObj.id+"_ft1"].className = "idis";
- document.all[EObj.id+"_ft1"].disabled = "disabled";
- document.all[EObj.id+"_ft2"].className = "idis";
- document.all[EObj.id+"_ft2"].disabled = "disabled";
- document.all[EObj.id+"_tt1"].className = "idis";
- document.all[EObj.id+"_tt1"].disabled = "disabled";
- document.all[EObj.id+"_tt2"].className = "idis";
- document.all[EObj.id+"_tt2"].disabled = "disabled";
- }
- }
- function processExcludeGetParams() {
- var ExclP = processExcludeGetP( Excl_MTF );
- ExclP += "," + processExcludeGetP( Excl_STS );
- ExclP += "," + processExcludeGetP( Excl_Mon );
- ExclP += "," + processExcludeGetP( Excl_Tue );
- ExclP += "," + processExcludeGetP( Excl_Wed );
- ExclP += "," + processExcludeGetP( Excl_Thu );
- ExclP += "," + processExcludeGetP( Excl_Fri );
- ExclP += "," + processExcludeGetP( Excl_Sat );
- ExclP += "," + processExcludeGetP( Excl_Sun );
-
- return ExclP;
- }
- function processExcludeGetP(EObj) {
- var ExclP = "";
- if ( EObj.checked ) {
- ExclP = "1,"+document.all[EObj.id+"_ft1"].value;
- ExclP += ","+document.all[EObj.id+"_tt1"].value;
- ExclP += ","+document.all[EObj.id+"_ft2"].value;
- ExclP += ","+document.all[EObj.id+"_tt2"].value;
- }
- else {
- ExclP = "0,,,,";
- }
- return ExclP;
- }
-
- //-->
- </script>
-
- <script LANGUAGE="JAVASCRIPT" SRC="js/Calendar.js" PURPOSE="COMPONENT" CLASSNAME="com.netobjects.Calendar"></script>
- <script LANGUAGE="JavaScript" src="js/MiscFunc.js"></script>
- <script LANGUAGE="JavaScript" src="js/ReportAllFunc.js"></script>
- <script LANGUAGE="JavaScript" src="js/GroupFunc.js"></script>
- <script LANGUAGE="JavaScript" src="js/ButtonFunc.js"></script>
- <script LANGUAGE="JavaScript" src="js/CalendarTimeFunc.js"></script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="Connected()">
- <!--
- processRepConnectConfirmed();
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="Disconnected()">
- <!--
- top.Rstatus.Pstat("Disconnected",true);
- if ( Tid != null ) {
- clearTimeout(Tid); // stop timeout routine
- }
- Tid = setTimeout("processRepReconnect()",10000); // Delay 10 secs then try reconnnect
- //-->
- </script>
-
- <script
- LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="DBChanged(cdata)">
- <!--
- var warr = new Array();
- warr = cdata.split("~"); // parse the event data
- // process only if Computer or Group Table change
- if ( (warr[0] == "2" || warr[0] == "5") && ignoreDBChangeEvent == false ) {
- top.banner.processDBChangeNotifyEvent(cdata);
- }
- ignoreDBChangeEvent = false;
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="WSHLookupRecord(SRid,SRptName,SRptDesc,SR_OID,InProcFlg,AIA,CIA,SRptD_T,PRptD_T,RptEvr)">
- <!--
- processWSHLookupRecord(SRid,SRptName,SRptDesc,SR_OID,InProcFlg,AIA,CIA,SRptD_T,PRptD_T,RptEvr);
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="WSHStatusChange(wsid,wsstat)">
- <!--
- processWSHStatusChange(wsid,wsstat);
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="WSHOpComplete()">
- <!--
- processWSHOpComplete();
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="WSHOpError()">
- <!--
- processWSHOpError();
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="WSHReplaceErrorNotFound()">
- <!--
- processWSHReplaceErrorNotFound();
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="AdminReportsOpComplete()">
- <!--
- processReportOpComplete();
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="AdminReportsOpError()">
- <!--
- processReportOpError();
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="AdminReportsLookupRecord(Rid,RNme,RDesc,RptD_T,AIA,CIA,MaxIntv)">
- <!--
- processReportLookupRecord(Rid,RNme,RDesc,RptD_T,AIA,CIA,MaxIntv);
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="SupportAnalysisLookupRecord(Aid,ANme,ADesc,OCXNme,CntArr,OSverArr)">
- <!--
- processSupportAnalysisLookupRecord(Aid,ANme,ADesc,OCXNme,CntArr,OSverArr);
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="SupportAnalysisOpComplete()">
- <!--
- processSupportAnalysisOpComplete();
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="SupportAnalysisOpError()">
- <!--
- processSupportAnalysisOpError();
- //-->
- </script>
- <script FOR="RpmCC_AR" EVENT="ComputerLookupRecord(Cid,Gid,Sid,Nme,Desc,Pswd,OSVer,Addr,Port)">
- <!--
- processComputerLookupRecord(Cid,Gid,Nme,Desc,OSVer);
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="ComputerOpComplete()">
- <!--
- processComputerOpComplete();
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="ComputerOpError()">
- <!--
- processComputerOpError();
- //-->
- </script>
- <script FOR="RpmCC_AR" EVENT="GroupLookupRecord(Gid,GNme,GDesc)">
- <!--
- processGroupLookupRecord(Gid,GNme,GDesc,null,AR_GrpStore);
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="GroupOpComplete()">
- <!--
- processGroupOpComplete();
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="GroupOpError()">
- <!--
- processGroupOpError();
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="StartCommunication()">
- <!--
- top.banner.processStartComm();
- //-->
- </script>
- <script LANGUAGE="JavaScript" FOR="RpmCC_AR" EVENT="StopCommunication()">
- <!--
- top.banner.processStopComm();
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" src="js/PopUpMenuFunc.js"></script>
-
- <object ID="RpmCC_AR" NAME="RpmCC_AR" WIDTH="14" HEIGHT="1" style="display:none" CLASSID="CLSID:D88C2358-FC83-11D1-BF49-00104B2D6F80" CODEBASE="controls/RPMComm.cab#version=5,2,0,0">
- <param name="_Version" value="65536">
- <param name="_ExtentX" value="2646">
- <param name="_ExtentY" value="1341">
- <param name="_StockProps" value="0">
- </object>
-
- <!--------------PopUp to Display Report Details -------------------->
- <div id="PopUpDetails" class="PopUpBox" style="display:none; left:150; top:150; ">
-
- <div id="DetailsDiv" style="display:one"><center>
- <center><table width="100%" align="center" border="0" cellspacing="3" cellpadding="3" >
- <tr><td height="23" style="font-weight:800; font-size:10pt; background-color:graytext; color:captiontext" colspan="2" align="center">Report Details</td></tr>
- <!--<tr><td height="4" class="inputlabel" colspan="2" align="center"> </td></tr>-->
- </table></center>
-
- <table width="100%" align="center" border="0" cellspacing="1" cellpadding="1" >
- <tr>
- <td>
- <center><div class="DetailsTextBox" Name="detwin" ID="detwin"></div></center></td>
- </tr>
- </table>
- <center><table width="100%" align="center" border="0" cellspacing="1" cellpadding="1" >
- <tr><td colspan="2" align="center" width ="100%"><button id="OKButton" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:75px; height:29px" onClick="processDetailsOKButton()" ><img src="images/apply.gif" align="absmiddle" height="16" width="16">OK </button></td></tr>
- <!--<tr><td height="5" class="inputlabel" colspan="2" align="center"> </td></tr>-->
-
- </table></center>
- </div>
- </div>
- <!----------------------------End of Pop-Up for Report Details ------------------------------------->
-
-
- <!-- ------------PopUp to Prompt for Report Parameters -------------------->
- <div id="PopUpExclude" class="PopUpBox" style="display:none; left:150; top:150; ">
-
- <div id="ExcludeDiv">
- <center><table width="100%" align="center" border="0" cellspacing="3" cellpadding="3" >
- <tr><td height="23" style="font-weight:800; font-size:10pt; background-color:graytext; color:captiontext" colspan="2" align="center">Specify Exclude Time Periods</td></tr>
- <!--<tr><td height="4" class="inputlabel" colspan="2" align="center"> </td></tr>-->
- </table></center>
-
- <table width="100%" align="center" border="0" cellspacing="1" cellpadding="1" >
- <tr><td width="100%" colspan="3" class="inputlabel" align="center" >Specify Optional Time periods to Exclude from the Report:</td></tr>
- <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Mon thru Fri: </td><td width="5%" align="left"><input id="Excl_MTF" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_MTF_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_MTF_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_MTF_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_MTF_tt2" maxLength="10" ></td></tr>
- <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Sat thru Sun: </td><td width="5%" align="left"><input id="Excl_STS" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_STS_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_STS_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_STS_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_STS_tt2" maxLength="10" ></td></tr>
- <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">and/or, </td><td width="5%"></td><td width="65%"></td></tr>
- <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Mon: </td><td width="5%" align="left"><input id="Excl_Mon" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Mon_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Mon_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Mon_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Mon_tt2" maxLength="10" ></td></tr>
- <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Tue: </td><td width="5%" align="left"><input id="Excl_Tue" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Tue_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Tue_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Tue_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Tue_tt2" maxLength="10" ></td></tr>
- <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Wed: </td><td width="5%" align="left"><input id="Excl_Wed" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Wed_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Wed_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Wed_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Wed_tt2" maxLength="10" ></td></tr>
- <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Thu: </td><td width="5%" align="left"><input id="Excl_Thu" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Thu_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Thu_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Thu_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Thu_tt2" maxLength="10" ></td></tr>
- <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Fri: </td><td width="5%" align="left"><input id="Excl_Fri" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Fri_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Fri_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Fri_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Fri_tt2" maxLength="10" ></td></tr>
- <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Sat: </td><td width="5%" align="left"><input id="Excl_Sat" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Sat_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Sat_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Sat_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Sat_tt2" maxLength="10" ></td></tr>
- <tr style="cursor:hand"><td width="30%" class="inputlabel" align="right">Sun: </td><td width="5%" align="left"><input id="Excl_Sun" type="checkbox" onclick="processExcludeClick(this)"></td><td width="65%" class="inputlabel" align="left"> From- <input TYPE="text" SIZE="4" id="Excl_Sun_ft1" maxLength="10" value="22:00"> -To- <input TYPE="text" SIZE="4" id="Excl_Sun_tt1" maxLength="10" value="02:00"> and,<br> From- <input TYPE="text" SIZE="4" id="Excl_Sun_ft2" maxLength="10" > -To- <input TYPE="text" SIZE="4" id="Excl_Sun_tt2" maxLength="10" ></td></tr>
- </table>
-
-
- <center><table width="100%" align="center" border="0" cellspacing="1" cellpadding="1" >
- <tr><td colspan="2" align="center" width ="100%"><button id="OKButton" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:75px; height:29px" onClick="processExcludeOKButton()" ><img src="images/apply.gif" align="absmiddle" height="16" width="16">OK </button> <button id="CancelButton" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:75px; height:29px" onClick="processExcludeCancelButton()"><img src="images/reset.gif" align="absmiddle" height="15" width="15"> Cancel  </button></td></tr>
- <!--<tr><td height="5" class="inputlabel" colspan="2" align="center"> </td></tr>-->
-
- </table></center>
- </div>
- </div>
- <!----------------------------End of Pop-Up for Exclude Time ------------------------------------->
-
- <center>
- <div class="GTabBox" border="0">
- <div align="left" style="clear:both">
- <table border="1" borderColor="activeborder" align="left">
- <tr><td borderColorDark="graytext" borderColorLight="white" height="25" style="font-weight:800; font-size:12pt; background-color:threedhighlight; color:windowtext"> <img src="images/sScheduleReports.gif" align="absmiddle" height="16" width="16"> Schedule CounterWatch Monitoring </td></tr>
- </table><br><br>
- </div>
-
- <div id="SchedRepTab"><table border="0" ><tr><td style="height:5px; width:460px" ></td></tr></table><table border="0" cellspacing="0"><tr><td valign="center" class="UILeftTabSel">Schedule</td><td valign="center" id="uirtus" class="UIRightTabUnsel" onclick="enableReportStatus()">Status</td><td align="right" style="height:30px; width:421px; border-bottom: solid thin white"><button title="Show Run/Analyze & View Reports in separate window" style="width:26px; height:25px; " onClick="processViewReportButton()"><img src="images/sViewReports.gif" align="absmiddle" height="16" width="16"></button> </td></tr></table></div>
-
- <div id="RepStatTab" style="display:none"><table border="0" ><tr><td style="height:5px; width:500px" ></td></tr></table><table border="0" cellspacing="0"><tr><td valign="center" class="UILeftTabUnsel" onclick="enableScheduleReport()">Schedule</td><td valign="center" class="UIRightTabSel" >Status</td><td align="right" style="height:30px; width:421px; border-bottom: solid thin white"><button style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" title="Show Run/Analyze & View Reports in separate window" style="width:26px; height:25px; " onClick="processViewReportButton()"><img src="images/sViewReports.gif" align="absmiddle" height="16" width="16"></button> </td></tr></table></div>
-
- <div id="SchedRepUI" class="Lbr_border" style="width:500px; height:375px; border-left:solid thin white; border-bottom:solid thin graytext; border-right:solid thin graytext" SelDate="">
- <table class="fldset" border="0" width="492" cellspacing="3" cellpadding="2" height="240">
- <tr>
- <td width="548" height="165"><div align="left"><table border="0" width="579" cellspacing="3" cellpadding="2" height="160">
- <tr>
- <td width="222" align="right" class="inputlabel" height="35">Report Name:</td>
- <td width="565" height="30"><input TYPE="text" SIZE="40" style="font-weight: 500; display: none" NAME="AR_Rpt" maxLength="40" onkeypress="processKeyPress();" onkeydown="processKeyDown();">
- <select ONCHANGE="processReportNameChange()" onclick="checkReportCount()" SIZE="1" NAME="AR_RptSel" class="idis" style="width: 228pt; font-weight: 500"></select>
- <select SIZE="1" NAME="AR_GrpStore" style="display: none"></select>
- </td>
- </tr>
- <tr>
- <td width="222" align="right" class="inputlabel" height="35">Report Description:</td>
- <td width="565" height="30"><input TYPE="text" SIZE="40" class="idis" style="font-weight: 500;" NAME="AR_Desc" maxLength="40" onkeypress="processKeyPress();" onkeydown="processKeyDown();"> <button style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:105px; height:22px" onClick="processDetailsButton()" ><img src="images/sAdminReports.gif" align="absmiddle" height="16" width="16">Report Details</button></td>
- </tr>
- <tr id="SpecDT">
- <td width="222" align="right" class="inputlabel" height="35">Start Date/Time:</td>
- <td><input TYPE="text" SIZE="18" style="font-weight: 500" NAME="SR_StartDate" class="idis" CalObj="" calendar="calwin" onClick="this.blur(); processCalendarClick(this)" style="cursor:hand"> <B>/</B> <input TYPE="text" SIZE="10" style="font-weight: 500" NAME="SR_StartTime" onClick="this.blur(); processTimeClick('SR','SR_StartTime')" style="cursor:hand" TimeState="0" class="idis">
- <span id="SpecDTDD">
- <img Name="SR_closebutton" align="absmiddle" src="images/leftbuttont.gif" onClick="processTimeClick('SR','SR_StartTime')" style="cursor:hand; display:none" WIDTH="25" HEIGHT="24">
- <select SIZE="1" NAME="SR_TimHrs" style="display: none"></select>
- <Big><B ID="SR_TempColon" style="display: none">:</B></Big>
- <select SIZE="1" NAME="SR_TimMins" style="display: none"></select>
- <select SIZE="1" NAME="SR_TimSecs" style="display: none"></select>
- <select SIZE="1" NAME="SR_M" style="display: none"></select></td>
- </span>
- </tr>
- <tr>
- <td width="222" align="right" height="2"></td>
- <td><div class="CalendarTextBox" Name="calwin" ID="calwin" CalState="0" style="display: none"></div></td>
- </tr>
- <tr id="SpecDur">
- <td width="222" align="right" class="inputlabel" height="35">Duration:</td>
- <td><input TYPE="text" SIZE="12" NAME="SR_Dur" style="cursor:hand" onClick="this.blur(); processDurationClick()" class="idis" >
- <span id="SpecDurDD">
- <img Name="Dur_closebutton" align="absmiddle" src="images/leftbuttont.gif" onClick="processDurationClick()" style="cursor:hand; display:none" WIDTH="25" HEIGHT="24">
- <select SIZE="1" NAME="SR_DurCount" style="display:none"></select>
- <select SIZE="1" NAME="SR_DurUnits" style="display:none"></select>
- </span>
- <button style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:155px; height:22px" onClick="processExcludeButton()" ><img src="images/sScheduleReports.gif" align="absmiddle" height="16" width="16">Exclude Time Periods</button>
- </td>
- </tr>
- <tr><td colspan="2" height="7"></td></tr>
- </table>
- </div></td>
- </tr>
- <tr>
- <td width="605" align="right" height="25"><p align="center"><button id="RScheduleButton" onclick="processScheduleButton()" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" style="width:155px; height:28px" disabled><img src="images/schedule.gif" align="absmiddle" height="14" width="16"> Schedule Monitoring</button> </td>
- </tr>
- <tr><td height="5"> </td></tr>
- </table>
- </div>
-
- <div id="RepStatUI" class="Lbr_border" style="display:none; width:500px; height:375px; border-left:solid thin white; border-bottom:solid thin graytext; border-right:solid thin graytext" SelDate="">
- <table class="fldset" border="0" width="492" cellspacing="3" cellpadding="2" height="240">
-
- <tr>
- <td width="548" height="150"><div align="center">
-
- <table border="0" width="579" cellspacing="3" cellpadding="2" height="77">
- <tr>
- <td width="1%"></td><td width="*" align="center" class="inputlabel">Status of Previously Scheduled Monitoring
- </td>
- </tr>
-
- <tr><td width="1%"></td><td width="*">
- <div align="center" class="RptStatusTextBox" Name="Rstattwin" ID="Rstatwin" classFlag ="idis"></div>
- </td>
- </tr>
-
- <tr><td width="1%"></td><td width="*">
- <div align="center" Name="RStatFunc" ID="RStatFunc" classFlag ="idis" ><center><button id="RsRemoveBut" onclick='processButClick()' style="width:80px; height:28px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" disabled><img src="images/DelImg.gif" align="absmiddle" height="14" width="14">Remove</button>  <button id="RsStopBut" style="width:80px; height:28px" onclick='processButClick()' style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" disabled><img src="images/Cancel.gif" align="absmiddle" height="15" width="15">Stop Now</button>  <button id="RsEditBut" style="width:80px; height:28px" onclick='processButClick()' style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" disabled><img src="images/EditStop.gif" align="absmiddle" height="16" width="15">Edit Stop </button></center>
- </div>
- </td>
- </tr>
-
- <tr><td colspan="2" align="center" >
- <div id="Es_Sdt" style="display:none">
- <br><center class="inputlabel">Edit Stop Date/Time</center><input TYPE="text" SIZE="16" style="font-weight: 500" NAME="Es_StopDate" onClick="this.blur(); processCalendarClick(this)" style="cursor:hand" CalObj="" calendar="Es_calwin"> <B>/</B>
- <select SIZE="1" NAME="Es_TimHrs" onchange="processStopTimeChange()"></select>
- <Big><B ID="Es_TempColon" >:</B></Big>
- <select SIZE="1" NAME="Es_TimMins" onchange="processStopTimeChange()"></select>
- <select SIZE="1" NAME="Es_M" onchange="processStopTimeChange()"></select>
- </div>
- </td>
- </tr>
-
- <tr>
- <td colspan="2" align="center"><div class="CalendarTextBox" Name="Es_calwin" ID="Es_calwin" CalState="0" style="display:none"></div>
- </td>
- </tr>
-
- <tr>
- <td colspan="2" align="center" id="ApCanBut" style="display:none"><button id="RsApplyBut" onclick='processButClick()' style="width:80px; height:28px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" disabled><img src="images/apply.gif" align="absmiddle" height="16" width="16">Apply</button>  <button id="RsCancelBut" style="width:80px; height:28px" onclick='processButClick()' style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand"><img src="images/Cancel.gif" align="absmiddle" height="16" width="17">Cancel</button></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
-
- <div style="height:5px; width:460px"><table height="5px" border="0" ><tr><td> </td></tr></table></div>
-
-
- </div>
- </center>
-
- </body>
- </html>
-